From: Keir Fraser Date: Wed, 28 Oct 2009 17:27:47 +0000 (+0000) Subject: iommu: Do not initialise global vars explicitly to zero. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13159 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=a7a8dc9942ca7c22d931751e9def47c76471dcbb;p=xen.git iommu: Do not initialise global vars explicitly to zero. Unnecessary and prevents them being allocated in BSS rather than data. Signed-off-by: Keir Fraser --- diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 1e59a16e19..e307e9d9fd 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -37,19 +37,20 @@ static int iommu_populate_page_table(struct domain *d); * no-intremap Disable VT-d Interrupt Remapping */ custom_param("iommu", parse_iommu_param); -int iommu_enabled = 0; -int iommu_pv_enabled = 0; -int force_iommu = 0; -int iommu_passthrough = 0; -int iommu_snoop = 0; -int iommu_qinval = 0; -int iommu_intremap = 0; -int amd_iommu_debug = 0; -int amd_iommu_perdev_intremap = 0; +int iommu_enabled; +int iommu_pv_enabled; +int force_iommu; +int iommu_passthrough; +int iommu_snoop; +int iommu_qinval; +int iommu_intremap; +int amd_iommu_debug; +int amd_iommu_perdev_intremap; static void __init parse_iommu_param(char *s) { char *ss; + iommu_enabled = 1; iommu_snoop = 1; iommu_qinval = 1;